package com.quant.common.utils;

import java.util.Date;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUnit;

public class TimeHelper {

	public static boolean isToday(long time) {
		DateTime lastTime = new DateTime(time);
		long dif = lastTime.between(new Date(), DateUnit.DAY);
		if(dif>0) {
			return true;
		}
		return false;
	}
	
	public static void main(String[] args) {
		System.out.println(isToday(1616428800000l));
	}

}
